package string;

public class LengthDemo {
    public static void main(String[] args) {
        String str="我爱Java!";
        int len=str.length();
        System.out.println(len);
        String a="我要发财!";
        int b=a.length();
        System.out.println(b);
    }
}
